package com.suapi.suapicommon.service;

/**
* @author xidian
* @description 针对表【user_interface_info(用户调用接口关系)】的数据库操作Service
* @createDate 2025-04-09 16:02:35
*/
public interface InnerUserInterfaceInfoService{

    /**
     * 调用次数
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    boolean invokeCount(long interfaceInfoId,long userId, int haveTimes);

    /**
     * 是否有调用次数
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    //boolean isHaveTimes(long interfaceInfoId,long userId);
    int isHaveTimes(long interfaceInfoId,long userId);

    /**
     * 获取状态
     * @param interfaceInfoId
     * @param userId
     * @return
     */
    int getUserInterfaceInfoStatus(long interfaceInfoId,long userId);

}
